<?php
include 'persistencia.php';

class usuario{
	public $nome;
	public $nick;
	public $pass;
	
	public function __construct(){
		$this->nome = $_POST['nomeUser'];
		$this->nick = $_POST['nickUser'];
		$this->pass = $_POST['senhaUser'];
	}
}

$func = new usuario();
$func->__construct();
inserirUser($func->nome, $func->nick, $func->pass);
header ("location:usuarios.php");
?>